package com.bjsc.controller;

import com.bjsc.service.IIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 首页控制器
* @ClassName: IndexController
* @author Gaojun.Zhou
* @date 2016年12月8日 下午8:42:40
*
 */
@Controller
@RequestMapping("/")
public class IndexController {
    @Autowired
    private IIndexService indexService;
	
    @RequestMapping({"","/","index"})  
    public  String index(Model model){
        model.addAttribute("item", indexService.getPlatformSummary());
		return "index";
    }
}
